import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Vant, { Lazyload } from 'vant'
import 'vant/lib/index.css'
import './assets/css/global.less'
import axios from 'axios'
import './mock/index.js'
// 引入设置rem 基准值
import 'amfe-flexible'
// 引入评论组件
import Comment from './components/comments/Comment.vue'
// 引入地图组件
import BaiduMap from 'vue-baidu-map'
// 引入mock数据 地图
import './assets/mock/index'
Vue.use(BaiduMap, {
  ak: 'mI2drrsvVx1u7L4v7noSGA1Cl8sGjNKF'
})
// 把评论组件注册为全局组件
Vue.component('ach-comments', Comment)
// import { Toast } from 'vant'

Vue.use(Vant)
Vue.use(Lazyload)
Vue.config.productionTip = false

Vue.prototype.$http = axios
axios.defaults.baseURL = 'http://www.liulongbin.top:3005/'

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
